<h2>Latest News</h2>
<?php
                    mysql_connect("localhost","root","");
                    mysql_select_db('noc');
                    $find = mysql_query("select * from `news`");
                    if ( mysql_numrows($find) > 0) {

                        while($display = mysql_fetch_assoc($find) ) {

                         
?>
				
				
<div class="post">

    
    <h4><?php echo $display['news_title'];?></h4>
    <p class="post-info">Published by : <?php echo $display['posted_by']; ?></p>
		
		<p align="justify">
            <?php //echo $display['location']." : ".$display['content'];?>
			<?php echo substr($display['content'],0,100);?>
        </p>
		
  
   <p class="postmeta">
        <a href="index.html" class="readmore">Read more</a> |
        <a href="index.html" class="comments">Comments (3)</a> |
        <span class="date"><?php echo $display['posted_on']; ?></span>
    </p>

</div>


                        <?php
                    }
                }
				?>